home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
SpecialMapping.java
< prev
next >
Wrap
Text File
|
1998-09-22
|
3KB
|
77 lines
/*
* @(#)SpecialMapping.java 1.2 97/10/28
*
* (C) Copyright Taligent, Inc. 1996 - All Rights Reserved
* (C) Copyright IBM Corp. 1996 - All Rights Reserved
*
* Portions copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
*
* The original version of this source code and documentation is copyrighted
* and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
* materials are provided under terms of a License Agreement between Taligent
* and Sun. This technology is protected by multiple US and International
* patents. This notice and attribution to Taligent may not be removed.
* Taligent is a registered trademark of Taligent, Inc.
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for NON-COMMERCIAL purposes and without
* fee is hereby granted provided that this copyright notice
* appears in all copies. Please refer to the file "copyright.html"
* for further important copyright and licensing information.
*
* SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
* THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
*
*/
package java.text;
/**
* This class represents exceptions to the normal unicode category
* mapping provided by Character. It is internal only. It represents
* a range of characters that don't follow the category mapping.
*/
final class SpecialMapping
{
/**
* The first character in exception range
*/
public char startChar;
/**
* The last character in the exception range
*/
public char endChar;
/**
* The category for characters in the range
*/
public int newValue;
/**
* Construct a mapping for a single character
* @param ch the character
* @param newValue the new category for the character
*/
public SpecialMapping(char ch, int newValue)
{
this(ch, ch, newValue);
}
/**
* Construct a mapping for a range of characters
* @param startChar the first character in the range
* @param endChar the last character in the range
* @param newValue the category for the range
*/
public SpecialMapping(char startChar, char endChar, int newValue)
{
this.startChar = startChar;
this.endChar = endChar;
this.newValue = newValue;
}
}